package ooday01;

public class Car02 {
    double leng;
    String brand;
    int seats;
    double speed;
    Car02(double len,String bran,int seat,double spee){
        leng=len;
        brand=bran;
        seats=seat;
        speed=spee;
    }
    void run(int ki){
        System.out.println("一辆"+this.leng+"长的"+this.brand+this.seats+"座车"+"以"+this.speed+"km/h的速度跑出了"+ki+"公里");
    }
}
